import request from "../request"
export default {
  //获取商品图片
  getDetailsPicture(data = {}) {
    return request({
      url: "/api/product/getDetailsPicture",
      method: "POST",
      data: data
    })
  },
  //获取商品详情
  getDetails(data = {}) {
    return request({
      url: "/api/product/getDetails",
      method: "POST",
      data: data
    })
  },
  // 添加收藏请求
  getaddCollect(data = {}) {
    return request({
      url: "/api/user/collect/addCollect",
      method: "POST",
      data: data
    })
  },
  // 页面获取收藏请求
  getCollect(data = {}) {
    return request({
      url: "/api/user/collect/getCollect",
      method: "POST",
      data: data
    })
  },
  // 删除收藏
  getdeleteCollect(data = {}) {
    return request({
      url: "/api/user/collect/deleteCollect",
      method: "POST",
      data: data
    })
  }
}